package com.jxnd.sunflower.domain.bo;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;

/**
 * @author: 敷衍
 * @description:
 * @date: 2021/11/24 13:07
 * @version: 1.0
 */
public class LoginBO {


    @NotBlank(message = "邮箱不能为空")
    @Pattern(regexp = "^[a-zA-Z0-9_-]+@[a-zA-Z0-9_-]+(\\.[a-zA-Z0-9_-]+)+$",message = "请输入正确的邮箱格式")
    @ApiModelProperty(value = "邮箱", name = "email")
    private String email;

    @NotBlank(message = "密码不能为空")
    @Size(max=16,min=4,message = "密码长度要在4-16之间")
    @ApiModelProperty(value = "密码", name = "password")
    private String password;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
